<template>
	<div class="info-bar">
		<div class="infobar-item"><span>@憨蛋儿</span></div>
		<div class="infobar-item"><span>可爱至极</span></div>
		<div class="infobar-item music-item">
			<span class="iconfont icon-icon-test"></span>
			<div  class="music-name">
				<span data-text="周杰伦">双节棍你好</span>
			</div>
		</div>
	</div>
</template>
<script>
</script>
<style scoped>
	.info-bar{
		color:#FFFFFF;
		font-size: 16px;
		padding-left: 10px;
	}
	.info-bar .infobar-item{
		padding: 5px 0;
	}
	.info-bar .infobar-item .icon-yinfu1{
		margin-right: 5px;
		display: block;
	}
	.music-item{
		display: flex;
	}
	.music-item .music-name{
		width:150px;
		white-space: nowrap;
		overflow: hidden;
		font-size:14px;
	}
	.music-item .music-name span{
		display: inline-block;
		animation: scroll 5s linear infinite;
	}
	.music-item .music-name span::after{
		content:attr(data-text);
		margin-left:30px;
	}
	@keyframes scroll{
	from{
			transform: translateX(0);
		}
	to{
			transform: translateX(calc(-50% - 20px));
		}
	}
</style>
